package com.peach.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Activity {
    private Integer activityId;
    private String activityAuthor;
    private String activityContent;
    private Date activityBeginDate;
    private Date activityEndDate;
    private User activityUser;
    private Integer activityUserId;
    private Integer activityState;


    public Activity(String activityAuthor,
                    String activityContent,
                    Date activityBeginDate,
                    Date activityEndDate,
                    User activityUser,
                    Integer activityUserId,
                    Integer activityState) {
        this.activityAuthor = activityAuthor;
        this.activityContent = activityContent;
        this.activityBeginDate = activityBeginDate;
        this.activityEndDate = activityEndDate;
        this.activityUser = activityUser;
        this.activityUserId = activityUserId;
        this.activityState = activityState;
    }

    public Activity(Integer activityId, String activityAuthor,
                    String activityContent, Date activityBeginDate,
                    Date activityEndDate, Integer activityUserId,
                    Integer activityState) {
        this.activityId = activityId;
        this.activityAuthor = activityAuthor;
        this.activityContent = activityContent;
        this.activityBeginDate = activityBeginDate;
        this.activityEndDate = activityEndDate;
        this.activityUserId = activityUserId;
        this.activityState = activityState;
    }

    public Activity(String activityAuthor, String activityContent,
                    Date activityBeginDate, Date activityEndDate,
                    Integer activityUserId,Integer activityState) {
        this.activityAuthor = activityAuthor;
        this.activityContent = activityContent;
        this.activityBeginDate = activityBeginDate;
        this.activityEndDate = activityEndDate;
        this.activityUserId = activityUserId;
        this.activityState = activityState;
    }
}
